/***************************************************************************
 *   Copyleft 2006-2007 by												   *
 *	 Iwanicki Krzysztof													   *
 *   <gamma.mini.pw.edu.pl/~iwanickik>									   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 ***************************************************************************/
#ifndef __ELLIPSOIDMANAGER_H__
#define __ELLIPSOIDMANAGER_H__

#include "./InputManager.h"
#include "../Objects/Ellipsoid.h"

class EllipsoidManager: public InputManager {
private:
	static cFloat mA;
	static cFloat mB;
	static cFloat mC;

	cVoid OnTransform(cUShort cmd);
	cVoid OnChangeParams(cUShort cmd);
	cBool mAdaptiveInProgress;
public:

    /**************************************************************
    * Constructors                                                *
    ***************************************************************/
	EllipsoidManager(Ellipsoid* ellipsoid): InputManager(ellipsoid), mAdaptiveInProgress(false) { }
        
    /**************************************************************
    * Operators                                                   *
    ***************************************************************/


    /**************************************************************
    * Other helpful functions                                     *
    ***************************************************************/
	virtual cVoid OnCommand(HWND hwnd, WPARAM wParam, LPARAM lParam, Engine3D* engine);
	virtual cVoid OnMouseMove(cPoint point, Engine3D* engine);
	virtual cVoid OnLeftMouseUp(cPoint point, Engine3D* engine);
	virtual cVoid OnRightMouseUp(cPoint point, Engine3D* engine);
	cBool GetAdaptiveInProgress();
	cVoid GetAdaptiveInProgress(cBool bStart);
};                                                                 

#endif // __ELLIPSOIDMANAGER_H__